package com.wanggan.rmi.service;

import java.rmi.Remote;
import java.rmi.RemoteException;

import com.wanggan.rmi.model.User;

/**
 * @author wanggan
 */
public interface UserService extends Remote {
    
    public User getById(Integer id) throws RemoteException;
    
    public User getByUsername(String username) throws RemoteException;
    
    int getUserCount() throws RemoteException;
    
}
